package com.alan.libapi.model.business;

/**
 * @className: UserSession
 * @describtion: UserSession
 * @author: AlanWang
 * @email: 850267876@qq.com
 * @time: 2016/4/18 11:15
 */
public class UserSession {

    /**
     * 注册成功后系统分配的用户ID
     */
    private int userId;
    /**
     * 注册或登录成功后服务器产生的回话密钥，之后的所有命令操作均需要携带该密钥
     */
    private String session;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getSession() {
        return session;
    }

    public void setSession(String session) {
        this.session = session;
    }

    @Override
    public String toString() {
        return "UserSession{" +
                "userId=" + userId +
                ", session='" + session + '\'' +
                '}';
    }
}
